package gl.android.biyiqing.competent;

import gl.android.biyiqing.bean.Result;
import gl.common.AjaxCallBackProxy;

import org.json.JSONException;

public class ByqAjaxCallProxy extends AjaxCallBackProxy {

	public Result unformat(String t) {

		try {
			return Result.parse(t);
		} catch (NullPointerException e) {
			e.printStackTrace();
			onFailure(e, 0, "服务器没有返回数据");
		} catch (JSONException e) {
			e.printStackTrace();
			onFailure(e, 0, "服务器返回错误的格式");
		}
		return new Result();
	}

}
